package edu.gatech.coc.betameisters.userinterfaces;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;

import edu.gatech.coc.betameisters.infoholders.DoctorsOrders;
import edu.gatech.coc.betameisters.main.MainPanel;

import javax.swing.JTextPane;
import javax.swing.JTextField;

public class EditDoctorsOrders extends JPanel {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1829100932351236599L;
	@SuppressWarnings("unused")
	private MainPanel myParent;
	private JTextField txtDocName;
	private JTextField txtPatName;

	/**
	 * Create the panel.
	 */
	public EditDoctorsOrders(DoctorsOrders thisDocOrder, MainPanel p) {
		myParent = p;
		setLayout(null);

		JLabel lblDoctorsOrders = new JLabel("Doctor's Orders");
		lblDoctorsOrders.setBounds(245, 11, 75, 14);
		add(lblDoctorsOrders);

		JButton btnViewTreatment = new JButton("View/Modify Treatment");
		btnViewTreatment.setEnabled(false);
		btnViewTreatment.setBounds(28, 81, 143, 23);
		add(btnViewTreatment);

		JButton btnCreateNewTreatment = new JButton("Create New Treatment");
		btnCreateNewTreatment.setBounds(28, 49, 143, 23);
		add(btnCreateNewTreatment);

		JButton btnViewPrescription = new JButton("View/Modify Prescription");
		btnViewPrescription.setEnabled(false);
		btnViewPrescription.setBounds(28, 193, 157, 23);
		add(btnViewPrescription);

		JButton btnCreateNewPrescription = new JButton(
				"Create New Prescription");
		btnCreateNewPrescription.setBounds(28, 159, 157, 23);
		add(btnCreateNewPrescription);

		JButton btnViewLabWork = new JButton("Create/View Lab Work Report");
		btnViewLabWork.setBounds(367, 93, 185, 23);
		add(btnViewLabWork);

		JLabel lblDoctorsMessage = new JLabel("Doctor's Message");
		lblDoctorsMessage.setBounds(28, 282, 93, 14);
		add(lblDoctorsMessage);

		JLabel lblDoctorsComments = new JLabel("Doctor's Comments");
		lblDoctorsComments.setBounds(326, 282, 93, 14);
		add(lblDoctorsComments);

		JButton btnSubmitChanges = new JButton("Submit Changes");
		btnSubmitChanges.setBounds(334, 406, 115, 23);
		add(btnSubmitChanges);

		JButton btnCancel = new JButton("Cancel");
		btnCancel.setBounds(459, 406, 117, 23);
		add(btnCancel);

		JLabel lblDoctor = new JLabel("Doctor:");
		lblDoctor.setBounds(367, 35, 46, 14);
		add(lblDoctor);

		JLabel lblPatient = new JLabel("Patient:");
		lblPatient.setBounds(367, 58, 46, 14);
		add(lblPatient);
		
		JTextPane textMessage = new JTextPane();
		textMessage.setText(thisDocOrder.getMessage());
		textMessage.setBounds(28, 299, 157, 42);
		add(textMessage);
		
		JTextPane textComments = new JTextPane();
		textComments.setText(thisDocOrder.getComments());
		textComments.setBounds(326, 299, 143, 42);
		add(textComments);
		
		txtDocName = new JTextField();
		txtDocName.setEditable(false);
		txtDocName.setBounds(412, 32, 140, 20);
		add(txtDocName);
		txtDocName.setColumns(10);
		
		txtPatName = new JTextField();
		txtPatName.setEditable(false);
		txtPatName.setBounds(412, 60, 140, 20);
		add(txtPatName);
		txtPatName.setColumns(10);

	}
}
